|
Command: |
To verify a decimal MAC of user defined length |
|
Notes: |
This command assumes that the data on which the MAC is to be generated consists of characters only The cipher scheme used deepends upon the key length. Single length WWK – Cipher scheme code 0 Double length WWK – Cipher scheme code 1 (X9.19 MAC) |
|
Field |
Length & Type |
Details |
|
COMMAND MESSAGE |
||
|
Message Header |
m A |
(Subsequently returned to the Host unchanged). |
|
Command Code |
2 A |
Value LM. |
|
TAK |
16 H or 1A+32H |
The TAK encrypted under LMK pair 16-17. |
|
MAC length |
1 H |
The number of characters in the Decimal MAC (range 1 - 12). |
|
MAC |
n N |
The MAC to be verified. |
|
Data |
0 - n |
The data on which the MAC to be verified was calculated, n= 1024 (512 for SNA-SDLC systems). |
|
End Message Delimiter |
1 C |
Optional. Must be present if a message trailer is present. Value X'19. |
|
Message Trailer |
n A |
Optional. Maximum length 32 characters. |
|
RESPONSE MESSAGE |
||
|
Message Header |
m A |
Returned to the Host unchanged |
|
Response code |
2 A |
Value LN |
Error Code |
2 N |
00 : No errors 27 : Invalid key length |
|
End Message Delimiter |
1 C |
Will only be present if present in the command message. Value X'19. |
|
Message Trailer |
n A |
Only present if in the command message. Maximum length 32 characters. |